#include <iostream>
#include <stdlib.h>
using std::cout;
using std::endl;

void display(){
    cout << "display()" << endl;
}

void print(){
    cout << "print()" << endl;
}

void test0(){
    atexit(display);
    atexit(print);
    cout << "da" << endl;
    atexit(print);
}

int main(int argc, char * argv[])
{
    test0();
    cout << "mao" << endl;
    return 0;
}


